#include "comdef.h"
#include "hif.h"
#include "usb_drv.h"
#include "cmr_drv.h"
#include "sd_drv.h"

#ifndef _TEST_PATTERN_
int test_gpio()
#else
int c_main()
#endif
{
	UINT16 temp;
	
	while (1)
	{
		write_host_internal(HIF_PAD_CTRL, 0xFFF);//enable GPIO
		write_host_internal(HIF_GPIO_DIR, 0);
		temp=read_host_internal(HIF_GPIO_OUT);
		write_host_internal(HIF_GPIO_DIR, 0xFFF);
		write_host_internal(HIF_GPIO_OUT, temp);
	}
}

